package myadmin.jtthink.com.Models;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;

@Data
@TableName(value = "tests")
@JsonNaming(PropertyNamingStrategy.KebabCaseStrategy.class)
public class TestModel {
    @TableId(value = "test_id",type = IdType.AUTO)
    private int testId;

    @TableField(value = "test_name")
    @JsonProperty(value = "test_name")
    private String testName;

    @TableField(value = "test_num")
    private int testNum;
}
